﻿<%@ Page Language="VB" MasterPageFile="~/MasterPageExpandable.master" AutoEventWireup="false" CodeFile="AuditSearch.aspx.vb" Inherits="AdHocReport_AuditSearch" title="Audit Log" %>

<%@ Register Src="AdHocMenu.ascx" TagName="AdHocMenu" TagPrefix="uc1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register Assembly="InputControls" Namespace="InputControls" TagPrefix="cc2" %>

<%@ Register src="../AJAX/PopupMessage.ascx" tagname="PopupMessage" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <script language="javascript" type="text/javascript">
 function alignDivs(scrollGridViewDiv, nameGridViewDiv, detailHeaderDiv)
    {
      var scrollDiv=document.getElementById(scrollGridViewDiv);
      var nameDiv=document.getElementById(nameGridViewDiv);
      var hdrDiv=document.getElementById(detailHeaderDiv);
      nameDiv.scrollTop=scrollDiv.scrollTop;
      hdrDiv.scrollLeft=scrollDiv.scrollLeft;
    }

function OpenDetails(primaryId, tbl)
{
alert(primaryId);
alert(tbl);
}

</script>
  <uc1:AdHocMenu ID="AdHocMenu1" runat="server" />
<h1>Audit Search</h1>
<table><tr><td><asp:Label ID="TableNameLabel" runat="server" Text="Table Name:" CssClass="label" AssociatedControlID="TableNameDropDown"></asp:Label>
    
    </td>
<td><asp:DropDownList ID="TableNameDropDown" runat="server">
   <asp:ListItem Text="Budget" Value="Budget"></asp:ListItem>
   <asp:ListItem Text="CDMUser" Value="CDMUser"></asp:ListItem>
   <asp:ListItem Text="ExpenditureReport" Value="ExpenditureReport"></asp:ListItem>
   <asp:ListItem Text="ExpenditureReportItem" Value="ExpenditureReportItem"></asp:ListItem>
   <asp:ListItem Text="FMSA" Value="FMSA"></asp:ListItem>
   <asp:ListItem Text="FMSATaxRate" Value="FMSATaxRate"></asp:ListItem>
   <asp:ListItem Text="LegalGuardian" Value="LegalGuardian"></asp:ListItem>
   <asp:ListItem Text="LocalProgram" Value="LocalProgram"></asp:ListItem>
   <asp:ListItem Text="Participant" Value="Participant"></asp:ListItem>
   <asp:ListItem Text="ParticipantAffirmation" Value="ParticipantAffirmation"></asp:ListItem>
   <asp:ListItem Text="ParticipantEmployee" Value="ParticipantEmployee"></asp:ListItem>
   <asp:ListItem Text="ParticipantRepresentative" Value="ParticipantRepresentative"></asp:ListItem>
   <asp:ListItem Text="Physician" Value="Physician"></asp:ListItem>
   <asp:ListItem Text="SpendingPlan" Value="SpendingPlan"></asp:ListItem>
   <asp:ListItem Text="SpendingPlanItem" Value="SpendingPlanItem"></asp:ListItem>
   <asp:ListItem Text="SupportBroker" Value="SupportBroker"></asp:ListItem>
   <asp:ListItem Text="SupportBrokerAgency" Value="SupportBrokerAgency"></asp:ListItem>
</asp:DropDownList></td><td><asp:Label ID="DateRangeLabel" runat="server" AssociatedControlID="StartDateTextBox" Text="Date Range:" CssClass="label"></asp:Label></td>
<td><asp:TextBox ID="StartDateTextBox" runat="server" Columns="8"></asp:TextBox>&nbsp;to&nbsp;<asp:TextBox ID="EndDateTextBox" runat="server" Columns="8"></asp:TextBox><cc1:CalendarExtender ID="CalStartDate" runat="server" TargetControlID="StartDateTextBox"></cc1:CalendarExtender>
<cc1:CalendarExtender ID="CalEndDate" runat="server" TargetControlID="EndDateTextBox"></cc1:CalendarExtender></td>
<td align="center"><asp:Button ID="SearchButton" runat="server" Text="Search" /></td>
<td><asp:Button ID="ExportButton" runat="server" Text="Export" Visible="false" /></td>
</tr>
</table>

<table><tr><td valign="top">
            
            <asp:UpdatePanel ID="AuditUpdatePanel" runat="server">
            <ContentTemplate>
              <cc2:ScrollingGridView ID="IdentifierGridView" ToolTip="190" ShowFooter="false" IsFixedColumn="true" ShowScrollBars="false"  runat="server" Caption="Summary of Changes Made" CssClass="gridOffsetSmall" Width="185px" InnerDivWidth="280" AutoGenerateColumns="False" PageSize="40" AllowPaging="false" CellPadding="5" CellSpacing="0" BorderColor="Gray" BorderStyle="Solid" GridLines="Vertical" EmptyDataText="" AllowSorting="True">
              <HeaderStyle CssClass="adminHeaderStyle" Height="16" BackColor="#C3CAD4" BorderColor="#21334B" VerticalAlign="Top" />
        <RowStyle CssClass="adminColumnStyle" Height="32" />
          <Columns>
            <asp:TemplateField HeaderText="Field ID" ItemStyle-Width="50px" HeaderStyle-Width="50px">
             <ItemTemplate>
               <asp:LinkButton CommandName="Details" ToolTip="Click for Details" CommandArgument='<%#Eval("PrimaryId")%>' Text='<%#Eval("PrimaryId") %>' runat="server"></asp:LinkButton>
             </ItemTemplate>
            </asp:TemplateField>
           <asp:BoundField HeaderText="Changed By" DataField="UserId" ItemStyle-Width="85px" HeaderStyle-Width="85px" />
           <asp:BoundField HeaderText="Date" DataField="ActivityDate" ItemStyle-Width="110px" DataFormatString="{0:MM/dd/yyyy}" HeaderStyle-Width="110px" />
          </Columns>
          <AlternatingRowStyle BackColor="#E8ECF4" />
          <EmptyDataRowStyle CssClass="label" HorizontalAlign="Center" /></cc2:ScrollingGridView>
          <uc2:PopupMessage ID="PopupMessage1" runat="server" />
          </ContentTemplate>
          </asp:UpdatePanel>     
    </td>

<td valign="top"><cc2:ScrollingGridView ID="AuditDetailsScrollingGridView" ToolTip="170" InnerDivWidth="580" IsFixedColumn="true" Caption="Column Value Details" runat="server" CssClass="gridOffsetSmall" AutoGenerateColumns="False" PageSize="40" AllowPaging="false" 
           CellPadding="5" CellSpacing="0" BorderColor="Gray" BorderStyle="Solid" GridLines="Vertical" 
           EmptyDataText="No changes found." AllowSorting="True">
             <HeaderStyle CssClass="adminHeaderStyle" Height="16" BackColor="#C3CAD4" BorderColor="#21334B" VerticalAlign="Top" />
        <RowStyle CssClass="adminColumnStyle" Height="32"  />
            <AlternatingRowStyle BackColor="#E8ECF4" />
            <EmptyDataRowStyle CssClass="label" HorizontalAlign="Center" />
           </cc2:ScrollingGridView></td>
</tr></table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>








